import request from '@/utils/request'

enum API {
  organization = '/organization',
  organizationList = '/organization/list',
  organizationDetail = '/organization/detail/',
}

export const reqAddOrganization = (data) => request.post(API.organization, data)
export const reqOrganizationList = (pageSize, page, searchOrg) =>
  request.get(API.organizationList, { params: { pageSize, page, searchOrg } })

export const reqOrganizationDetail = (id) =>
  request.get(`${API.organizationDetail}${id}`)
